﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfForumList.aspx.cs" Inherits="msBsc.WebUi.wMall.Seller.wfForumList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>地接客论坛列表</title>
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/usermenu.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/pagination.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Seller/sForumList.css" rel="stylesheet" />
</head>
<body>
    <div class="wf_all">
        <div id="divLoginInfo">
            <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo() %>
        </div>
        <div class="main-container">
            <div class="sidebar-scroll">
               <%=msBsc.WebUi.Code.QtHtmlGet.GetDjackMenuHtml() %>
            </div>
            <div class="main-Info">
                <div class="main-menu">
                    <ul class="breadcrumb">
                        <li>
                            <a href="#">我的地接客</a>
                            <span class="divider">></span>
                        </li>
                        <li>
                            <a href="#" id="menuParent">论坛</a>
                            <span class="divider">></span>
                        </li>
                        <li class="" id="menuName">地接客论坛
                        </li>
                    </ul>
                    <a target="_blank" href="/ws_ReleaseForum.htm" class="Release">+ 发布</a>
                </div>
                <div class="main-horizontal">
                    <div class="formList">

                        <div class="marquee">
                            <div class="marqueeName">
                                <img src="/themes/wStyle1/Images/Seller/speaker.gif" width="11" height="11" />公告:
                            </div>
                            <div id="marqueeInfo" class="marqueeInfo" style="float: left; width: 725px; padding-left: 5px; text-align: left;">
                            </div>
                            <div class="clear"></div>
                        </div>
                        <table id="forumInfo">
                        </table>
                        <xmp id="svc_list_temp" style="display: none">
                        {{#for(var i=0,len=d.rows.length;i < len;i++){ }}
                            <tr><td class='djackImg'><a target='_blank' href='/wp_DjackVehicle.htm?djackId={{d.rows[i].POSTS_PUBLISH_BY}}'><img src='{{d.rows[i].CUSTOMER_DEFAULT_PIC}} 67x60img.jpg' title="{{d.rows[i].CUSTOMER_NICK}}" /></a></td><td class='forumName'><a target='_blank' href='/ws_ForumInfo.htm?forumId={{d.rows[i].SOURCE_POSTS_ID}}'>{{d.rows[i].SOURCE_POSTS_TITLE}}</a></td><td class='forumTime'>{{d.rows[i].POSTS_PUBLISH_TIME}}</td></tr>
                        {{#} }}
                    </xmp>
                    </div>
                    <div class="jpage" id="divPage"></div>
                </div>
            </div>
        </div>

        <!--start JS引用-->
        <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
        <script src="/jqPlugin/js/jBase.js"></script>
        <script src="/jqPlugin/js/jBPage.js"></script>
        <script src="/jqPlugin/js/laytpl.js"></script>
        <script src="/themes/wStyle1/js/comm/jsPagination.js"></script>
        <script src="/themes/wStyle1/js/comm/VerifyJs.js"></script>
        <script src="/themes/wStyle1/js/comm/DateInfo.js"></script>

        <script src="/jqPlugin/SelectSimu/js/SelectSimu.js"></script>
        <script src="/themes/wStyle1/js/comm/jsLayout.js"></script>
        <!--end JS引用-->
        <script type="text/javascript">
            var pIndex = 1;
            var pageSize = 11;
            function btnDo(sEbtn) {
                GtGrid1Action = sEbtn;
                var opart = GetGtParam();
                ajaxComm(opart);
            };

            //执行AJAX调用时获取参数
            function GetGtParam() {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("pIndex", pIndex);
                _jsParam.AddCell("pRows", pageSize);
                _jsParam.AddCell("ACTION", GtGrid1Action);
                return _jsParam;
            };
            btnDo("init");

            function goPage(Index) {
                pIndex = Index;
                btnDo("gopage");
            }

            /*start 滚动*/
            var marqueeContent = new Array(); //滚动主题 
            var marSize = 5;
            function GetMarList(data) {
                if (IsNull(data)) {
                    return;
                }
                marqueeContent = new Array();
                for (var i = 0; i < data.length; i++) {
                    marqueeContent[i] = '<a href="/Announcement/AnnouncementInfo/' + data[i].Id + '" target="_blank">' + data[i].NewsTitle + '</a>';
                }
                initMarquee("marqueeInfo");

            }

            var marqueeInterval = new Array(); //定义一些常用而且要经常用到的变量 
            var marqueeId = 0;//当前显示内容
            var marqueeDelay = 4000;//间隔时间
            var marqueeHeight = 30;//显示宽度

            function initMarquee(innerId) {
                var str = marqueeContent[0];
                document.getElementById(innerId).innerHTML = '<div id=marqueeBox style="overflow:hidden;height:' + marqueeHeight + 'px" onmouseover="clearInterval(marqueeInterval[0])" onmouseout="marqueeInterval[0]=setInterval(\'startMarquee()\',marqueeDelay)"><div>' + str + '</div></div>';
                marqueeInterval[0] = setInterval("startMarquee()", marqueeDelay);
            }
            function startMarquee() {
                var str = marqueeContent[marqueeId];
                marqueeId++;
                if (marqueeId >= marqueeContent.length) marqueeId = 0;
                if (marqueeBox.childNodes.length == 1) {
                    var nextLine = document.createElement('DIV');
                    nextLine.innerHTML = str;
                    marqueeBox.appendChild(nextLine);
                }
                else {
                    marqueeBox.childNodes[0].innerHTML = str;
                    marqueeBox.appendChild(marqueeBox.childNodes[0]);
                    marqueeBox.scrollTop = 0;
                }
                clearInterval(marqueeInterval[1]);
                marqueeInterval[1] = setInterval("scrollMarquee()", 10);
            }
            function scrollMarquee() {
                marqueeBox.scrollTop++;
                if (marqueeBox.scrollTop % marqueeHeight == marqueeHeight) {
                    clearInterval(marqueeInterval[1]);
                }
            }
            //GetMarList();
        </script>
        <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    </div>
</body>
</html>
